package com.da.springcloud.controller;

import javax.annotation.Resource;

import com.da.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JokerDa.
 * @date 2021/1/14 15:22
 * Description:
 */
@RestController
public class SendMessageController {

    @Resource
    private IMessageProvider messageProvider;

    /**
     * http://localhost:8801/sendMessage
     */
    @GetMapping("/sendMessage")
    public String sendMessage() {
        return messageProvider.send();
    }
}
